/*ArrayAndProinter.c -- 数组与指针*/
#include "stdio.h"
#include "add.h"

int my_strlen(char*);

int main() {
	int arr[10] = { 0 };
	printf("%p\n", arr);
	printf("%p\n", arr + 1);
	printf("%p\n", &arr[0]);
	printf("%p\n", &arr[0] + 1);
	printf("%p\n", &arr);
	printf("%p\n", &arr + 1);

	return 0;
}

int* add(int* a) {
	return a;
}

int my_strlen(char* str) {
	char* start = str;
	char* end = str;
	while (*end != '\0') {
		end++;
	}
	return end - start;
}